home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 010 / basebl.arc / BASEBALL.DOC < prev   
Text File  |  1987-01-20  |  16KB  |  334 lines

  1.  
  2.  
  3.                             Baseball Statkeeper 1
  4.  
  5.  
  6.                             Baseball Statkeeper 1.1
  7.                         (C)1987 By Michael J. Himowitz
  8.                             8134 Scotts Level Road
  9.                               Baltimore, MD 21208
  10.                                  301-521-4885
  11.                                 CIS 71655,1327
  12.                                DELPHI MHIMOWITZ
  13.        
  14.        
  15.        
  16.        
  17.             Baseball Statkeeper is a program for the IBM PC and close
  18.        compatibles that will make you the statistical genius of your
  19.        Little Leauge. It will keep track of batting statistics for 180
  20.        players on 12 teams. It will print out a variety of statistics
  21.        for individual players and teams, sort the players on various
  22.        stats and produce a variety of reports on the screen or printer.
  23.        I designed it for little league play, but it can be used on
  24.        virtually any level of competitive baseball or softball.
  25.             The program is written in BASIC and runs under the BASIC
  26.        interpreter. The current version needs some work before it can
  27.        be compiled using the IBM Basic Compiler or Microsoft
  28.        QuickBasic. This is so because it uses a machine language sort,
  29.        as well as a routine that clears the screen quickly. As soon as
  30.        I figure out how to get those working under the compiler, I'll
  31.        get out a compiled version. I don't think it will pick up much
  32.        speed from compilation, as the compiler doesn't do much for disk
  33.        I/O or screen writing.
  34.             Baseball Statkeeper stores its information on disk in
  35.        files. A file can contain stats for a single team or a whole
  36.        league. To begin, you must set up the teams in your league (or
  37.        just one team, if that's all you're interested in) and establish
  38.        a roster of players. You can add a player or team at any time.
  39.        After each game, all you have to do is enter the stats from the
  40.        game for each player. The program does all the calculating.
  41.             Everything is menu driven. When the program starts, you'll
  42.        see a Main Menu with the following choices:
  43.        
  44.                              1. LOAD A FILE
  45.                              2. CREATE A NEW FILE
  46.                              3. UPDATE A PLAYER
  47.                              4. TEAM ROSTER
  48.                              5. ADD A PLAYER
  49.                              6. PLAYER REPORTS
  50.                              7. TEAM REPORTS
  51.                              8. SORT YOUR STATS
  52.                              9. QUIT
  53.        
  54.             The menu choices are arranged in the order you're most
  55.        likely to need them. However, we'll discuss them in the order
  56.        you'll use them when you first set up your records. To select
  57.        any menu item, just type its number. You do not have to hit
  58.        <RETURN>.
  59.        
  60.  
  61.  
  62.  
  63.                             Baseball Statkeeper 2
  64.  
  65.  
  66.                                CREATE A NEW FILE
  67.        
  68.             This is menu Item 2. When you select it, you will be asked
  69.        whether you want to create a new file. This is typical of
  70.        Baseball Statkeeper. Before you do anything permanent, you will
  71.        always be asked if you want to go ahead. Type "Y" to continue or
  72.        "N" to return to the Main Menu.
  73.             When you have confirmed your choice, you will be asked to
  74.        type the letter representing the drive that will hold your data
  75.        files. Type the letter (A-D). You will be shown a directory of
  76.        files on that drive. You will then be prompted to enter a
  77.        filename. Enter a filename of up to eight characters. DO NOT add
  78.        an extension. The program will do that for you, as it actually
  79.        creates four separate files, each with the filename you have
  80.        chosen and extensions that the program looks for when accessing
  81.        and writing data.
  82.             When you have entered the filename, you will be returned to
  83.        the Main Menu, where that filename will now be displayed.
  84.        
  85.                              SET UP A TEAM ROSTER
  86.        
  87.             This is menu Item 4. It will allow you to add the names of
  88.        teams to your roster. When you choose this item, you will be
  89.        shown a list of current teams. You will then be prompted to
  90.        enter the name of the team you want to add. Team names may have
  91.        up to 18 characters.
  92.             When you have entered a team name, you will be asked if it
  93.        is correct. If you type "Y" you will be asked if you want to
  94.        enter another team. If you type "N" you'll be prompted to enter
  95.        the team name again. This, too, is typical of the program any
  96.        time you are asked to enter data. If it is not correct, you will
  97.        get the chance to enter it again.
  98.             After you enter each team name, you will be asked to enter
  99.        another team. When you are through entering the names of the
  100.        teams in your league, type "N" when asked if you want to enter
  101.        another team. You will then be returned to the Main Menu.
  102.        
  103.                                   ADD PLAYERS
  104.        
  105.             This is menu Item 5. When you choose to add a player, you
  106.        will shown a list of teams, with the numbers assigned to each
  107.        team by the program. You will then be prompted to enter the last
  108.        name, first initial and team number for each player. MAKE SURE
  109.        YOUR CAPS LOCK KEY IS TURNED ON when you enter this information,
  110.        or the players names will not be properly sorted. Also, be sure
  111.        to enter the NUMBER of the player's team and not the team name.
  112.             When you have finished entering each player's name and
  113.        team, you will be asked if you want to enter another player. If
  114.        you type "Y" you'll be prompted for the information about the
  115.        new player. If you type "N" you'll return to the Main Menu.
  116.        
  117.  
  118.  
  119.  
  120.                             Baseball Statkeeper 3
  121.  
  122.  
  123.                                 UPDATE A PLAYER
  124.        
  125.            This is menu Item 3. It will allow you to update the latest
  126.        game stats for each player (or enter stats for the initial game
  127.        if you're just beginning your season). You will be prompted to
  128.        enter the player's last name, then his first initial. Once
  129.        again, make sure the CAPS LOCK key is depressed.
  130.            The program will display the first match it comes to
  131.        (including the team) and ask if this is the player you want. If
  132.        it's not the player (in the unlikely event that you have two
  133.        with the same last name and first initial), type "N" and the
  134.        computer will look for further matches. If it is the player you
  135.        want, type "Y."
  136.            The player's current stats will be displayed, and you will
  137.        be asked to enter the following information (a sample screen
  138.        follows):
  139.        
  140.        
  141.        ╔════════════════════════════════════════════════════════════════════════════╗
  142.        ║                        HERE ARE THE CURRENT STATS                          ║
  143.        ╠════════════════════════════════════════════════════════════════════════════╣
  144.        ║LAST NAME      FI T   AB HITS  AVG  HR  OBP RUN RBI ERR  BB  SO  1B  2B  3B ║
  145.        ║HIMOWITZ       M  2   31  14  .452   5 .553  10   5   5   7   6   8   2   2 ║
  146.        ╚════════════════════════════════════════════════════════════════════════════╝
  147.        
  148.                            LET'S ENTER STATS FOR THE LATEST GAME
  149.        
  150.                 AT BATS: 5
  151.                 HITS: 3
  152.                 HOME RUNS: 1
  153.                 RUNS SCORED: 1
  154.                 ERRORS: 1
  155.                 WALKS: 1
  156.                 STRIKEOUTS: 2
  157.                 SINGLES: 1
  158.                 DOUBLES: 1
  159.                 TRIPLES: 1
  160.                 RBI'S: 3
  161.        
  162.                             IS THIS INFORMATION CORRECT? (Y/N)
  163.        
  164.        
  165.             After typing each piece of information, hit the <RETURN>
  166.        key. When you have confirmed the entire entry, the stats will be
  167.        upated at the top of the screen and you will be asked if you
  168.        want to update another player. Type "Y" to ask for another
  169.        player or "N" to return to the Main Menu.
  170.        
  171.                                   LOAD A FILE
  172.        
  173.            This is menu Item 1. It will allow you to load a player file
  174.        from disk if you are just starting the program. You must load a
  175.        file (or create a new one) before you can update player stats.
  176.        You will be prompted to enter the letter representing your data
  177.        drive. Then you will be shown a directory of all the player
  178.  
  179.  
  180.  
  181.                             Baseball Statkeeper 4
  182.  
  183.  
  184.        files on that drive (they have the extension .PLY).
  185.            When asked, type in the name of the player file you want to
  186.        load. DO NOT TYPE THE EXTENSION. Just type the file name. The
  187.        information in the file will be loaded into memory, and you're
  188.        ready to update the player stats.
  189.        
  190.                                 SORT YOUR STATS
  191.        
  192.            Menu Item 8 is one of the nicest features of the program. It
  193.        allows you to sort the players based on a variety of different
  194.        statistics. The kids will love it, because everyone is likely to
  195.        be near the top of the list in one category or another. Even the
  196.        shrimpiest kid on the team is likely have a good on-base
  197.        percentage because he gets a lot of walks. When you choose the
  198.        sort feature, you'll see the following choices:
  199.        
  200.                            1. BY BATTING AVERAGE
  201.                            2. BY HITS
  202.                            3. BY HOME RUNS
  203.                            4. BY RBI'S
  204.                            5. BY RUNS SCORED
  205.                            6. BY ON-BASE PCT.
  206.        
  207.           Just type the number of your selection and the program will
  208.        sort the players on that statistic. It may take a minute or two,
  209.        particularly if you're working from floppy disks and have a
  210.        large number of players. When the sort is complete, you'll be
  211.        prompted to hit the <RETURN> key to return to the Main Menu.
  212.        
  213.                                 PLAYER REPORTS
  214.        
  215.           This feature will allow you to display your player stats on
  216.        the screen or send them to your printer. You will see the
  217.        following choices:
  218.        
  219.                            1. INDIVIDUAL PLAYER
  220.                            2. ALL PLAYERS
  221.                            3. RETURN TO MAIN MENU
  222.        
  223.           Just type the number of your selection. In either case, you
  224.        will be asked if you want the report sent to the screen or
  225.        printer. Type either "S" for screen or "P" for printer.
  226.           If you ask for an individual player, you'll be prompted for
  227.        the player's last name and first initial. Once again, MAKE SURE
  228.        THE CAPS LOCK KEY IS DEPRESSED. The program will display the
  229.        player's stats or send it to the printer, depending on how you
  230.        asked for it.
  231.           If you ask for a printout, you will be prompted to enter
  232.        today's date first. Once the data has been printed, you will be
  233.        asked if you want to start a new page before going onto the next
  234.        player. Type "Y" or "N". This will allow you to save paper if
  235.        you ask for a series of indivdual players.
  236.           When you ask for a report showing all players, you will be
  237.        asked if you want the CURRENT INDEX or the PLAYER INDEX. This
  238.        refers to how you want the players displayed. If you ask for the
  239.  
  240.  
  241.  
  242.                             Baseball Statkeeper 5
  243.  
  244.  
  245.        CURRENT INDEX, the players will be listed according to the last
  246.        sort you asked for. If you specify the PLAYER INDEX, the players
  247.        will be listed in alphabetical order.
  248.        
  249.                                  TEAM REPORTS
  250.        
  251.            Menu Item 7 will give you team reports in several different
  252.        formats. Once again, you will have the choice of displaying the
  253.        reports on the screen or printer, with one exception. The
  254.        display of all teams with their players is a printer-only
  255.        report. Here are the choices you'll see:
  256.        
  257.                            1. LIST ALL TEAMS
  258.                            2. TEAM WITH PLAYERS
  259.                            3. ALL TEAMS WITH PLAYERS
  260.                            4. RETURN TO MENU
  261.        
  262.           1. List All Teams--This will give you a report showing the
  263.        composite statistics for all teams. It's a great summary for
  264.        your whole league.
  265.           2. Team With Players--This will allow you to select an
  266.        individual team. It will show you all the players on the team
  267.        you select, with the team's composite stats at the bottom.
  268.           3. All Teams With Players--This will send reports for all
  269.        your teams to the printer automatically, with a separate page
  270.        for each team. The indivdual players and team totals will be
  271.        shown on each page.
  272.           If you ask for printed reports, you will usually be asked to
  273.        enter a title that will appear at the top of the page along with
  274.        the date. It's a good idea to make sure you have the correct
  275.        date in the system before you run the program to eliminate any
  276.        conflicts here. You will normally get the date prompt from DOS
  277.        when you start your computer. If you're not sure whether you
  278.        have it, just enter the command DATE at the DOS prompt (not
  279.        while you're in BASIC) and then enter the date.
  280.        
  281.                                 TECHNICAL NOTES
  282.        
  283.           Baseball Statkeeper creates four disk files to store the
  284.        information in each filename that you specify. Let's say you
  285.        create a file called "LEAGUE." The four disk files created are
  286.        as follows:
  287.        
  288.           LEAGUE.PLY -- A random access file with the players names,
  289.        team numbers and statistics.
  290.           LEAGUE.CNF -- A sequential file indicating the current number
  291.        of players and teams.
  292.           LEAGUE.TMS -- A sequential file containing composite
  293.        statistics for each team.
  294.           LEAGUE.PDX -- A sequential index file in which each entry is
  295.        a player's  name followed by his record number in the random
  296.        file LEAGUE.PLY. The PDX file is sorted in alphabetical order.
  297.        When you sort your stats, the program creates a second
  298.        sequential file in memory with the same names and team numbers,
  299.        but sorted in the order you specified.
  300.  
  301.  
  302.  
  303.                             Baseball Statkeeper 6
  304.  
  305.  
  306.                                  PROGRAM NOTES
  307.        
  308.            While this program is copyrighted, you are free to use it
  309.        and distribute copies. But you can't charge anything for those
  310.        copies. The program is published under the "Leagueware"
  311.        principle. If you like it and use it, don't send me anything.
  312.        Instead, make a contribution to your local little league. If you
  313.        don't have a local little league, you can make a contribution to
  314.        our local little league, Pikesville Baseball Inc., P.O. Box
  315.        5965, Baltimore, MD 21208.
  316.            I could include some silly language about only distributing
  317.        unmodified copies of the program. But I know there are lots of
  318.        hackers out there who may be able to improve it. If you should
  319.        modify it and distribute it, you must include a copy of the
  320.        original program and documentation. You must also make it
  321.        perfectly clear in the modified version that it is in fact, a
  322.        modified version and not the original. This will save me a lot
  323.        of grief.
  324.            The author makes the usual disclaimers of irresponsibility
  325.        as to warranties, performance, merchantability, and fitness for
  326.        any particular purpose. If you find any bugs or problems, or
  327.        make improvements, I would appreciate hearing from you or
  328.        getting a copy of the enhanced version. Mostly, I hope you and
  329.        your players enjoy the program.
  330.        
  331.                                  Mike Himowitz
  332.                                     1/20/86
  333.  
  334.